package com.ruoyi.common.enums;

import lombok.Getter;

/**
 * 前三位代表服务，后3位代表接口
 */
public enum  BizCodeEnum {

    /**
     * 用户 100001  
     */
    USER_PWD_ERROR(100001,"账号或者密码错误！"),
    USER_SIGN_ERROR(100002,"当前手机号已被注册！"),
    USER_SIGN_UP(100003,"已报名,请勿重复报名"),
    SELECT_ERROR(100004,"未查询到相关数据"),
    TOKEN_ERROR(100005,"认证失效,请重新登录！"),
    LACK_BALANCE(100006,"余额不足！"),


    /**
     * 短信  200001
     */
    CODE_ERROR(200001,"验证码错误！");





    @Getter
    private String message;

    @Getter
    private int code;

    private BizCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }
    
}
